﻿using System;
using Calimbra.Runtime.Contracts;

namespace Calimbra.Runtime.Functions
{
    public class Execute_operation
    {
        public void Process(Tuple<IMessage, IOperation> tuple)
        {
            tuple.Item2.Implementation(tuple.Item1, output => Result(output));
        }

        public event Action<IMessage> Result;
    }
}